// 商家消息列表
export const serviceLista = (data) => {
  return uni.http({
    url: 'service/list',
    method: 'get',
    data,
    requestType: 'shop',
    contentTypeKey: 'json',
  })
}
// 生活消息列表
export const serviceListb = (data) => {
  return uni.http({
    url: 'service/list',
    method: 'get',
    data,
    requestType: 'life',
    contentTypeKey: 'json',
  })
}
// 服务消息列表
export const serviceListc = (data) => {
  return uni.http({
    url: 'service/list',
    method: 'get',
    data,
    requestType: 'service',
    contentTypeKey: 'json',
  })
}
// 总消息列表
export const getUserMessage = (data) => {
  return uni.http({
    url: 'api/member/get_user_message',
    method: 'get',
    data,
    requestType: 'baby',
  })
}
// 消息详情
export const readUserMessage = (data) => {
  return uni.http({
    url: 'api/member/read_user_message',
    method: 'get',
    data,
    requestType: 'baby',
  })
}
// 消息列表
export const getUserListMessage = (data) => {
  return uni.http({
    url: 'api/member/get_user_message_list',
    method: 'get',
    data,
    requestType: 'baby',
  })
}

// 清除未读
export const serviceClear = (data) =>
  uni.http({
    url: 'blapp/v1/clean_up',
    method: 'post',
    data,
    requestType: 'app',
  })

// 关注、取关
export const followCreate = (data) =>
  uni.http({
    url: '/sq/Follow/create',
    method: 'get',
    data,
    requestType: 'app',
  })

export const getUserPage = (data) =>
  uni.http({
    url: 'sq/user/homePage',
    method: 'POST',
    data,
    requestType: 'bl',
  })
// 获取腾讯IM

export const getIMApi = (data) =>
  uni.http({
    url: 'api/Im/get_sig',
    method: 'GET',
    data,
    requestType: 'bl',
  })

// 读取消息列表
export const getChatMsgList = (data) =>
  uni.http({
    url: 'sq/chat/message',
    data,
    requestType: 'bl',
  })
// 发送消息

export const sendChatMsg = (data) =>
  uni.http({
    url: 'doctorapp/v1/chat_add',
    method: 'POST',
    data,
    requestType: 'app',
  })
// 收藏列表
export const getCollectList = (data) =>
  uni.http({
    url: 'doctorapp/v1/shop_collect',
    data,
    requestType: 'app',
  })
// 购物车列表
export const getCartList = (data) =>
  uni.http({
    url: 'doctorapp/v1/shop_cart',
    data,
    requestType: 'app',
  })
// 浏览记录列表
export const getHistoryList = (data) =>
  uni.http({
    url: 'doctorapp/v1/shop_history',
    data,
    requestType: 'app',
  })
// 获取体重记录
export const getWeight = (data) =>
  uni.http({
    url: 'yc/SendRecord/sendWeight',
    data,
    requestType: 'bl',
  })
// 获取运动记录

export const getDiet = (data) =>
  uni.http({
    url: 'yc/SendRecord/sendDiet',
    data,
    requestType: 'bl',
  })
// 获取饮食记录

export const getMotion = (data) =>
  uni.http({
    url: 'yc/SendRecord/sendMotion',
    data,
    requestType: 'bl',
  })
// 获取睡眠记录

export const getSleep = (data) =>
  uni.http({
    url: 'yc/SendRecord/sendSleep',
    data,
    requestType: 'bl',
  })
// 获取收藏记录

export const getcollectList = (data) =>
  uni.http({
    url: 'doctorapp/v1/pc_collect',
    data,
    requestType: 'app',
  })
// 获取点赞记录

export const getzanList = (data) =>
  uni.http({
    url: 'doctorapp/v1/pc_zan',
    data,
    requestType: 'app',
  })

export const getseachList = (data) =>
  uni.http({
    url: 'doctorapp/v1/pc_search',
    data,
    requestType: 'app',
  })

export const getCatSearchList = (data) =>
  uni.http({
    url: 'doctorapp/v1/search_lst',
  })

export const getChatIsOk = (data) =>
  uni.http({
    url: 'doctorapp/v1/chat_deadline',
    data,
    requestType: 'app',
  })

export const messageIsRead = (data) =>
  uni.http({
    url: 'doctorapp/v1/chat_set_read',
    data,
    requestType: 'app',
  })
